package com.fast.server.entity.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 分享信息
 * </p>
 *
 * @author ziyuancheng
 * @since 2024-05-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_file_share")
@ApiModel(value="SysFileShare对象", description="分享信息")
public class SysFileShare implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "分享ID")
    @TableId("share_id")
    private String shareId;

    @ApiModelProperty(value = "文件ID")
    @TableField("file_id")
    private String fileId;

    @ApiModelProperty(value = "用户ID")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "有效期类型 0:1天 1:7天 2:30天 3:永久有效")
    @TableField("valid_type")
    private Boolean validType;

    @ApiModelProperty(value = "失效时间")
    @TableField("expire_time")
    private LocalDateTime expireTime;

    @ApiModelProperty(value = "分享时间")
    @TableField("share_time")
    private LocalDateTime shareTime;

    @ApiModelProperty(value = "提取码")
    private String code;

    @ApiModelProperty(value = "浏览次数")
    @TableField("show_count")
    private Integer showCount;


}
